import request from '@/utils/request'

// 查询论文信息集列表
export function listEssay(query) {
  return request({
    url: '/teacher/essay/list',
    method: 'get',
    params: query
  })
}

// 通过A00查询论文信息集列表
export function listEssayByA00(A00) {
  return request({
    url: '/teacher/essay/listByA00?A00=' + A00,
    method: 'get',
  })
}

// 查询论文信息集详细
export function getEssay(recordid) {
  return request({
    url: '/teacher/essay/' + recordid,
    method: 'get'
  })
}

// 新增论文信息集
export function addEssay(data) {
  return request({
    url: '/teacher/essay',
    method: 'post',
    data: data
  })
}

// 修改论文信息集
export function updateEssay(data) {
  return request({
    url: '/teacher/essay',
    method: 'put',
    data: data
  })
}

// 删除论文信息集
export function delEssay(recordid) {
  return request({
    url: '/teacher/essay/' + recordid,
    method: 'delete'
  })
}

// 导出论文信息集
export function exportEssay(query) {
  return request({
    url: '/teacher/essay/export',
    method: 'get',
    params: query
  })
}
